<?php
/*
 * Copyright (c) 2017-2025 Tencent. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
namespace TencentCloud\Trocket\V20230308\Models;
use TencentCloud\Common\AbstractModel;

/**
 * DescribeConsumerGroup response structure.
 *
 * @method integer getConsumerNum() Obtain Number of online consumers.
 * @method void setConsumerNum(integer $ConsumerNum) Set Number of online consumers.
 * @method integer getTps() Obtain TPS
 * @method void setTps(integer $Tps) Set TPS
 * @method integer getConsumerLag() Obtain Specifies the number of accumulated messages.
 * @method void setConsumerLag(integer $ConsumerLag) Set Specifies the number of accumulated messages.
 * @method string getConsumeType() Obtain Consumption type. valid values as follows:.

-PULL: specifies the pull consumption type.
-PUSH: specifies the push consumption type.
-POP: specifies the pop consumption type.
 * @method void setConsumeType(string $ConsumeType) Set Consumption type. valid values as follows:.

-PULL: specifies the pull consumption type.
-PUSH: specifies the push consumption type.
-POP: specifies the pop consumption type.
 * @method integer getCreatedTime() Obtain Creation time. **It is a Unix timestamp (ms).**
 * @method void setCreatedTime(integer $CreatedTime) Set Creation time. **It is a Unix timestamp (ms).**
 * @method boolean getConsumeMessageOrderly() Obtain Specifies whether to use ordered delivery. valid values: true.
Concurrent delivery: false.
 * @method void setConsumeMessageOrderly(boolean $ConsumeMessageOrderly) Set Specifies whether to use ordered delivery. valid values: true.
Concurrent delivery: false.
 * @method boolean getConsumeEnable() Obtain Whether to enable consumption.
 * @method void setConsumeEnable(boolean $ConsumeEnable) Set Whether to enable consumption.
 * @method integer getMaxRetryTimes() Obtain Maximum number of retries.
 * @method void setMaxRetryTimes(integer $MaxRetryTimes) Set Maximum number of retries.
 * @method string getRemark() Obtain Remarks
 * @method void setRemark(string $Remark) Set Remarks
 * @method string getMessageModel() Obtain Specifies the consumption mode.
BROADCASTING.
CLUSTERING cluster mode.
 * @method void setMessageModel(string $MessageModel) Set Specifies the consumption mode.
BROADCASTING.
CLUSTERING cluster mode.
 * @method string getRequestId() Obtain The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
 * @method void setRequestId(string $RequestId) Set The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
 */
class DescribeConsumerGroupResponse extends AbstractModel
{
    /**
     * @var integer Number of online consumers.
     */
    public $ConsumerNum;

    /**
     * @var integer TPS
     */
    public $Tps;

    /**
     * @var integer Specifies the number of accumulated messages.
     */
    public $ConsumerLag;

    /**
     * @var string Consumption type. valid values as follows:.

-PULL: specifies the pull consumption type.
-PUSH: specifies the push consumption type.
-POP: specifies the pop consumption type.
     */
    public $ConsumeType;

    /**
     * @var integer Creation time. **It is a Unix timestamp (ms).**
     */
    public $CreatedTime;

    /**
     * @var boolean Specifies whether to use ordered delivery. valid values: true.
Concurrent delivery: false.
     */
    public $ConsumeMessageOrderly;

    /**
     * @var boolean Whether to enable consumption.
     */
    public $ConsumeEnable;

    /**
     * @var integer Maximum number of retries.
     */
    public $MaxRetryTimes;

    /**
     * @var string Remarks
     */
    public $Remark;

    /**
     * @var string Specifies the consumption mode.
BROADCASTING.
CLUSTERING cluster mode.
     */
    public $MessageModel;

    /**
     * @var string The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
     */
    public $RequestId;

    /**
     * @param integer $ConsumerNum Number of online consumers.
     * @param integer $Tps TPS
     * @param integer $ConsumerLag Specifies the number of accumulated messages.
     * @param string $ConsumeType Consumption type. valid values as follows:.

-PULL: specifies the pull consumption type.
-PUSH: specifies the push consumption type.
-POP: specifies the pop consumption type.
     * @param integer $CreatedTime Creation time. **It is a Unix timestamp (ms).**
     * @param boolean $ConsumeMessageOrderly Specifies whether to use ordered delivery. valid values: true.
Concurrent delivery: false.
     * @param boolean $ConsumeEnable Whether to enable consumption.
     * @param integer $MaxRetryTimes Maximum number of retries.
     * @param string $Remark Remarks
     * @param string $MessageModel Specifies the consumption mode.
BROADCASTING.
CLUSTERING cluster mode.
     * @param string $RequestId The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
     */
    function __construct()
    {

    }

    /**
     * For internal only. DO NOT USE IT.
     */
    public function deserialize($param)
    {
        if ($param === null) {
            return;
        }
        if (array_key_exists("ConsumerNum",$param) and $param["ConsumerNum"] !== null) {
            $this->ConsumerNum = $param["ConsumerNum"];
        }

        if (array_key_exists("Tps",$param) and $param["Tps"] !== null) {
            $this->Tps = $param["Tps"];
        }

        if (array_key_exists("ConsumerLag",$param) and $param["ConsumerLag"] !== null) {
            $this->ConsumerLag = $param["ConsumerLag"];
        }

        if (array_key_exists("ConsumeType",$param) and $param["ConsumeType"] !== null) {
            $this->ConsumeType = $param["ConsumeType"];
        }

        if (array_key_exists("CreatedTime",$param) and $param["CreatedTime"] !== null) {
            $this->CreatedTime = $param["CreatedTime"];
        }

        if (array_key_exists("ConsumeMessageOrderly",$param) and $param["ConsumeMessageOrderly"] !== null) {
            $this->ConsumeMessageOrderly = $param["ConsumeMessageOrderly"];
        }

        if (array_key_exists("ConsumeEnable",$param) and $param["ConsumeEnable"] !== null) {
            $this->ConsumeEnable = $param["ConsumeEnable"];
        }

        if (array_key_exists("MaxRetryTimes",$param) and $param["MaxRetryTimes"] !== null) {
            $this->MaxRetryTimes = $param["MaxRetryTimes"];
        }

        if (array_key_exists("Remark",$param) and $param["Remark"] !== null) {
            $this->Remark = $param["Remark"];
        }

        if (array_key_exists("MessageModel",$param) and $param["MessageModel"] !== null) {
            $this->MessageModel = $param["MessageModel"];
        }

        if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
            $this->RequestId = $param["RequestId"];
        }
    }
}
